package com.li.mapper;

import com.li.pojo.Advice;
import com.li.pojo.BadGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BadGoodsMapper {
  //获取维修总数
  int getBadTotal(Map<String,Object> queryMap);
  
  //获取所有维修
  List<BadGoods> findBadList(Map<String,Object> queryMap);
  
  //添加维修
  Integer addBadGoods(@Param("badGoods") BadGoods ba);
  
  Integer updateById(@Param("badGoods") BadGoods ba);
  
  
  Integer deleteById(@Param("id") Integer id);
  
}
